package com.day18.ex02;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class OutputStreamWriterDemo {
    public static void main(String[] args) throws IOException {
OutputStreamWriter osw=new OutputStreamWriter(new FileOutputStream("myCharStream\\osw.txt"));
        char[] chs={'a','b','c','d','e'};
        osw.write("abcde",1,3);
        osw.close();
    }
}
